
package com.fiill.audioplayer;

import android.app.Application;
import android.content.Intent;
import android.os.UserHandle;
import android.util.Log;

// If making the service launcher automatically before enter launcher,
// we need to deploy this application to /system/app & 
// to set android:persistent="true" in AndroidManifest.xml

public class AudioPlayerApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Log.i("BAHAL_APP", "Creating AudioPlayerApplication ...");
        Intent rmServiceIntent = new Intent();
        rmServiceIntent.setClass(this, CmdService.class);
        startServiceAsUser(rmServiceIntent, UserHandle.CURRENT);
    }
}
